'Declaration
<ExtensionAttribute()> <NotNullAttribute()> Public Overloads Shared Function ReadItem(Of TValue)( _ ByVal client As IEasyDAClient, _ ByVal serverDescriptor As ServerDescriptor, _ ByVal nodeDescriptor As DANodeDescriptor _ ) As DAVtq(Of TValue)
'Usage
Dim client As IEasyDAClient Dim serverDescriptor As ServerDescriptor Dim nodeDescriptor As DANodeDescriptor Dim value As DAVtq(Of TValue) value = IEasyDAClientExtension2.ReadItem(Of TValue)(client, serverDescriptor, nodeDescriptor)
[Extension()] [NotNull()] public static DAVtq<TValue> ReadItem<TValue>( IEasyDAClient client, ServerDescriptor serverDescriptor, DANodeDescriptor nodeDescriptor )
[Extension()] [NotNull()] public: static DAVtq<TValue^>^ ReadItemgeneric<typename TValue> ( IEasyDAClient^ client, ServerDescriptor^ serverDescriptor, DANodeDescriptor^ nodeDescriptor )
Parameters
- client
- The client object that will perform the operation.
- serverDescriptor
- The OPC server involved in the operation.
- nodeDescriptor
- The OPC item involved in the operation.
Type Parameters
- TValue
- The type of item value.
Return Value
If successful, the function returns a OpcLabs.EasyOpc.DataAccess.Generic.DAVtq<TValue> object. The object contains the value, timestamp and quality of the OPC item requested.